﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ThemeList.aspx.cs" Inherits="CSMF.ThemeList"   MasterPageFile="CSMF.Master"%>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="FootControl.ascx" TagName="FootControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>主题活动-海峡两岸微电影大赛</title>
    <meta name="keywords" content="微电影,微电影大赛,海峡两岸微电影大赛,海峡两岸,大赛,福建,旅游,旅行,电影" />
    <meta name="description" content="微电影大赛,海峡两岸微电影大赛,旅游微电影大赛,提供微电影投资,微电影管理,微电影演员,微电影拍摄,微电影纪实,微电影造型,微电影后期,微电影播放,微电影发布,微电影搜索,微电影分享。" />
    <link rel="shortcut icon" href="csmff.ico" type="image/x-icon" />


</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="mtlist ztlist">
        <asp:Repeater ID="rptNews" runat="server">
            <ItemTemplate>
                <div class="item">
                    <h2>
                        <a href='<%# "ThemeDetail.aspx?id=" + Eval("ID") %>' title='<%# Eval("Title") %>'>
                            <%# Eval("Title") %></a></h2>
                    <p class="time">
                        发表日期：<font><%# Convert.ToDateTime(Eval("NewsDate")).ToString("yyyy.MM.dd")%></font></p>
                    <p class="img">
                        <img src='<%# "UpLoad/newsImage/" + Eval("Image") %>' /></p>
                    <p class="cont">
                        <%# Regex.Replace(Convert.ToString(Eval("NewsContent")), "<[^>]*>", "").ToString().Length > 300 ? Regex.Replace(Convert.ToString(Eval("NewsContent")), "<[^>]*>", "").ToString().Substring(0,299).Replace("\r\n", "<br />") + "..." :  Regex.Replace(Convert.ToString(Eval("NewsContent")), "<[^>]*>", "").ToString().Replace("\r\n", "<br />")%></p>
                    <div class="bott">
                        <div class="left">
                            标签：<span>
                                <%# Eval("Tag")%></span></div>
                        <div class="right">
                            <a href='<%# "ThemeDetail.aspx?id=" + Eval("ID") %>'>查看全文</a>
                        </div>
                    </div>
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    <div>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="<<" LastPageText=">>"
            NextPageText=">" PrevPageText="<" ShowPageIndexBox="Always" HorizontalAlign="Right"
            CssClass="anpager" CurrentPageButtonClass="cpb" OnPageChanging="AspNetPager1_PageChanging"
            CustomInfoTextAlign="Right" PageIndexBoxType="DropDownList" SubmitButtonText="Go"
            TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到">
        </webdiyer:AspNetPager>
    </div>
    <br />
</asp:Content>
